package com.content.view.Component.CButton
{
	public class Level1VO
	{
		public var ID:String;
		public var MPID:String;		// 点击后打开的MainPanel编号 
		public var ICOName:String;	// 子按钮是否有图标，如果为 null ，则表示没有 
		public var Category:String;	// 按钮类型，有的是System按钮，有的是功能Toggle按钮
		public var Order:int;
		public var Default:Boolean;
		
		public var PosY:int;	// 按钮所在的Y坐标，用于做为二级菜单的参考
		
		private var _subVOList:Array;
		
		public function Level1VO(xml:XML){
			_subVOList = new Array();
			
			ID = xml.@ID;
			MPID = xml.@MPID;
			ICOName = xml.@ICOName;
			Category = xml.@Category;
			Order = int(xml.@Order);
			Default = (xml.@Default == '0')?false:true;
			
			var level2Item:XML;
			for each (level2Item in xml.level2)
			{
				var level2VO:Level2VO = new Level2VO();
				level2VO.ID = level2Item.@ID;
				level2VO.MPID = level2Item.@MPID;
				level2VO.ICOName = level2Item.@ICOName;
				level2VO.Order = level2Item.@Order;
				level2VO.Default =( level2Item.@Default == "0")?false:true;
				level2VO.Text = level2Item;
				
				_subVOList.push(level2VO);
			}
		}
		
		public function get SubVOList():Array{	return _subVOList;		}
	}
}